﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.BaseInformation;
using TyMES.Model;

namespace TyMES.ViewModel.BaseInformation.StationVMs
{
    public partial class StationTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Station._StationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<Station>(x => x.StationCode);
        [Display(Name = "_Model._Station._StationName")]
        public ExcelPropety StationName_Excel = ExcelPropety.CreateProperty<Station>(x => x.StationName);
        [Display(Name = "_Model._Station._Base_Status")]
        public ExcelPropety Base_Status_Excel = ExcelPropety.CreateProperty<Station>(x => x.Base_Status);
        [Display(Name = "_Model._Station._LineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<Station>(x => x.LineCode);
        [Display(Name = "_Model._Station._StationManagerID")]
        public ExcelPropety StationManagerID_Excel = ExcelPropety.CreateProperty<Station>(x => x.StationManagerID);
        [Display(Name = "_Model._Station._StationManagerName")]
        public ExcelPropety StationManagerName_Excel = ExcelPropety.CreateProperty<Station>(x => x.StationManagerName);
        [Display(Name = "_Model._Station._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Station>(x => x.CreateTime, true);
        [Display(Name = "_Model._Station._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Station>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Station._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Station>(x => x.CreateBy);
        [Display(Name = "_Model._Station._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Station>(x => x.UpdateBy);
        [Display(Name = "_Model._Station._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Station>(x => x.IsValid);

	    protected override void InitVM()
        {
            

        }

    }

    public class StationImportVM : BaseImportVM<StationTemplateVM, Station>
    {
            //import

    }

}